Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Oct 24, 2025

Marks common Angular packages and RxJS as external within the Vitest test runner's build configuration. This allows Vite to perform dependency pre-bundling on these libraries, which can significantly improve build and rebuild performance during test execution.

The implementation introduces a constant to hold the list of packages and merges them with any externalDependencies that may already exist in the base build options, preserving user configuration.

@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Oct 24, 2025
Marks common Angular packages and RxJS as external within the Vitest test runner's build configuration. This allows Vite to perform dependency pre-bundling on these libraries, which can significantly improve build and rebuild performance during test execution.

The implementation introduces a constant to hold the list of packages and merges them with any externalDependencies that may already exist in the base build options, preserving user configuration.
@clydin clydin force-pushed the unit-test/initial-pre-bundle branch from bf76406 to edc973a Compare October 25, 2025 13:52
@clydin clydin changed the title fix(@angular-devkit/build-angular): externalize Angular dependencies in Vitest runner fix(@angular/build): externalize Angular dependencies in Vitest runner Oct 25, 2025
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Oct 25, 2025
@clydin clydin merged commit 9f2d3f7 into angular:main Oct 25, 2025
33 checks passed
@clydin
Copy link
Member Author

clydin commented Oct 25, 2025

This PR was merged into the repository. The changes were merged into the following branches:

@clydin clydin deleted the unit-test/initial-pre-bundle branch October 25, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build area: @angular-devkit/build-angular target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants